package com.coding.dao;

import com.coding.pojo.Collect;
import com.coding.pojo.Usercollectplace;
import com.coding.pojo.Usercollectpoem;
import com.coding.pojo.Usercollectpost;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectDao {
    int insert(Collect record);

    int countCollectTimes(@Param("source_id") int source_id, @Param("source_kind") String source_kind);

    List<Collect> getByTime(int user_id);

    Collect selectAll(@Param("user_id") int user_id, @Param("source_id") int source_id, @Param("source_kind") String source_kind);

    List<Usercollectpost> selectpost(int user_id);

    Usercollectpost selectPostSingle(int source_id);

    List<Usercollectplace> selectMainplace(int user_id);

    Usercollectplace selectMainplaceSingle(int source_id);

    List<Usercollectpoem> selectpoem(int user_id);

    Usercollectpoem selectPoemSingle(int source_id);

    int deleteCollect(@Param("user_id") int user_id, @Param("source_id") int source_id, @Param("source_kind") String source_kind);

    int insertSelective(Collect record);


}